07. How wide is the viewport?

Calculating Viewport Width

Calculate the width (in dips) of the viewport for all of the devices below. Entering in just the number is fine!

QUESTION:

A phone that is 640px wide, DPR = 2

SOLUTION:

NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer

QUESTION:

A phablet that is 780px wide, DPR = 2.5

SOLUTION:

NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer

QUESTION:

A tablet that is 1024px wide, DPR = 1

SOLUTION:

NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer

QUESTION:

A laptop browser that is 800px wide, DPR = 1

SOLUTION:

NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer